package com.adhere.auth;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;

import java.util.Arrays;

/**
 * 鉴权服务
 *
 * @author WT
 * @date 2022/01/29 20:49:53
 */
@Slf4j
@EnableFeignClients
@SpringBootApplication
public class AdhereAuthApplication {

	public static void main(String[] args) {
		ConfigurableApplicationContext configurableApplicationContext = SpringApplication.run(AdhereAuthApplication.class, args);
		String[] beanDefinitionNames = configurableApplicationContext.getBeanDefinitionNames();
		Arrays.sort(beanDefinitionNames);
		log.info("=============== 输出 IOC 容器中的全部 Bean ===============");
		for (int i = 0; i < beanDefinitionNames.length; i++) {
			log.info("bean[{}]={}", String.format("%03d", i + 1), beanDefinitionNames[i]);
		}
	}

}
